package cn.iocoder.yudao.module.yyzx.controller.admin.staff.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 员工 Response VO")
@Data
@ExcelIgnoreUnannotated
public class StaffRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17756")
    @ExcelProperty("主键")
    private Integer id;

    @Schema(description = "姓名", example = "张三")
    @ExcelProperty("姓名")
    private String staffName;

    @Schema(description = "性别")
    @ExcelProperty(value = "性别", converter = DictConvert.class)
    @DictFormat("system_user_sex") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer staffSex;

    @Schema(description = "年龄")
    @ExcelProperty("年龄")
    private String staffAge;

    @Schema(description = "员工号")
    @ExcelProperty("员工号")
    private String staffNumber;

    @Schema(description = "员工类别", example = "2")
    @ExcelProperty(value = "员工类别", converter = DictConvert.class)
    @DictFormat("STAFF_TYPE") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer staffType;

    @Schema(description = "入职时间")
    @ExcelProperty("入职时间")
    private LocalDateTime entryDate;

    @Schema(description = "职务")
    @ExcelProperty("职务")
    private String duty;

    @Schema(description = "职称")
    @ExcelProperty("职称")
    private String positionalTitle;

    @Schema(description = "简介")
    @ExcelProperty("简介")
    private String brief;

    @Schema(description = "人员状态", example = "1")
    @ExcelProperty(value = "人员状态", converter = DictConvert.class)
    @DictFormat("USER_STATUS") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer staffStatus;

    @Schema(description = "手机号码")
    @ExcelProperty("手机号码")
    private String phoneNumber;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}